import request from '@/utils/request'

// 查询积分设置列表
export function listIntegralSetting(query) {
  return request({
    url: '/business/integralSetting/list',
    method: 'get',
    params: query
  })
}

// 查询积分设置详细
export function getIntegralSetting(id) {
  return request({
    url: '/business/integralSetting/' + id,
    method: 'get'
  })
}

// 新增积分设置
export function addIntegralSetting(data) {
  return request({
    url: '/business/integralSetting',
    method: 'post',
    data: data
  })
}

// 修改积分设置
export function updateIntegralSetting(data) {
  return request({
    url: '/business/integralSetting',
    method: 'put',
    data: data
  })
}

// 删除积分设置
export function delIntegralSetting(id) {
  return request({
    url: '/business/integralSetting/' + id,
    method: 'delete'
  })
}
